import request from '@/utils/request'
//获取受试者列表
export const useSubjectsService = {
  get: () => request.get('/patient_user'),
  post: (data) => request.post('/patient_user', data),
  put: (data) => request.put('/patient_user', data),
  search: (search) => request.get('/search/patient_user/' + search)
}

export const useFllowService = {
  get: () => request.get('/recrudescence_evaluate')
}

export const useSubjectAEService = {
  get: (id) => request.get('/ae/' + id),
  post: (data) => request.post('/ae', data),
  put: (data) => request.put('/ae', data)
}

export const useSubjectSAEService = {
  get: (id) => request.get('/sae/' + id),
  post: (data) => request.post('/sae', data),
  put: (data) => request.put('/sae', data)
}

export const useSubjectCompletionService = {
  get: (id) => request.get('/completion_status/' + id),
  post: (data) => request.post('/completion_status', data),
  put: (data) => request.put('/completion_status', data)
}

export const useSubjectEliminateService = {
  get: (id) => request.get('/eliminate/' + id),
  post: (data) => request.post('/eliminate', data),
  put: (data) => request.put('/eliminate', data)
}

export const useSubjectExitService = {
  get: (id) => request.get('/exit/' + id),
  post: (data) => request.post('/exit', data),
  put: (data) => request.put('/exit', data)
}

export const useSubjectSuspendService = {
  get: (id) => request.get('/suspend_experiment/' + id),
  post: (data) => request.post('/suspend_experiment', data),
  put: (data) => request.put('/suspend_experiment', data)
}

export const useSubjectEasiService = {
  get: (id) => request.get('/easi/' + id),
  post: (data) => request.post('/easi', data),
  put: (data) => request.put('/easi', data)
}

export const useSubjectGeneralService = {
  get: (id) => request.get('/general_information/' + id),
  post: (data) => request.post('/general_information', data),
  put: (data) => request.put('/general_information', data)
}

export const useSubjectSmokeService = {
  get: (id) => request.get('/smoke/' + id),
  post: (data) => request.post('/smoke', data),
  put: (data) => request.put('/smoke', data)
}

export const useSubjectDrinkService = {
  get: (id) => request.get('/drink/' + id),
  post: (data) => request.post('/drink', data),
  put: (data) => request.put('/drink', data)
}

export const useSubjectMenstruationService = {
  get: (id) => request.get('/menstruation/' + id),
  post: (data) => request.post('/menstruation', data),
  put: (data) => request.put('/menstruation', data)
}

export const useSubjectInducingService = {
  get: (id) => request.get('/inducing_factors/' + id),
  post: (data) => request.post('/inducing_factors', data),
  put: (data) => request.put('/inducing_factors', data)
}

export const useSubjectVitalService = {
  get: (id) => request.get('/vital_signs/' + id),
  post: (data) => request.post('/vital_signs', data),
  put: (data) => request.put('/vital_signs', data)
}

export const useSubjectAllergyService = {
  get: (id) => request.get('/allergy_history/' + id),
  post: (data) => request.post('/allergy_history', data),
  put: (data) => request.put('/allergy_history', data)
}

export const useSubjectDiseaseService = {
  get: (id) => request.get('/disease_history/' + id),
  post: (data) => request.post('/disease_history', data),
  put: (data) => request.put('/disease_history', data)
}

export const useSubjectAdFamilyService = {
  get: (id) => request.get('/ad_family_history/' + id),
  post: (data) => request.post('/ad_family_history', data),
  put: (data) => request.put('/ad_family_history', data)
}

export const useSubjectTreatmentyService = {
  get: (id) => request.get('/treatment_history/' + id),
  post: (data) => request.post('/treatment_history', data),
  put: (data) => request.put('/treatment_history', data)
}

export const useSubjectSystemService = {
  get: (id) => request.get('/system_medicine/' + id),
  post: (data) => request.post('/system_medicine', data),
  put: (data) => request.put('/system_medicine', data)
}

export const useSubjectOralService = {
  get: (id) => request.get('/oral_medicine/' + id),
  post: (data) => request.post('/oral_medicine', data),
  put: (data) => request.put('/oral_medicine', data)
}

export const useSubjectTopicalService = {
  get: (id) => request.get('/topical_medicine/' + id),
  post: (data) => request.post('/topical_medicine', data),
  put: (data) => request.put('/topical_medicine', data)
}

export const useSubjectOtherOneService = {
  get: (id) => request.get('/other_disease_one/' + id),
  post: (data) => request.post('/other_disease_one', data),
  put: (data) => request.put('/other_disease_one', data)
}
export const useSubjectOtherTwoService = {
  get: (id) => request.get('/other_disease_two/' + id),
  post: (data) => request.post('/other_disease_two', data),
  delete: (data) => request.delete('/other_disease_two', { data: data }),
  put: (data) => request.put('/other_disease_two', data)
}

export const useSubjectExperimentalService = {
  get: (id) => request.get('/experimental_indication/' + id),
  post: (data) => request.post('/experimental_indication', data),
  delete: (data) => request.delete('/experimental_indication', { data: data }),
  put: (data) => request.put('/experimental_indication', data)
}

export const useSubjectAdverseSercice = {
  get: (id) => request.get('/adverse_reaction_record/' + id),
  post: (data) => request.post('/adverse_reaction_record', data),
  delete: (data) => request.delete('/adverse_reaction_record', { data: data }),
  put: (data) => request.put('/adverse_reaction_record', data)
}

export const useSubjectRecrudescenceSercice = {
  get: (id) => request.get('/recrudescence_evaluate/' + id),
  post: (data) => request.post('/recrudescence_evaluate', data),
  delete: (data) => request.delete('/recrudescence_evaluate', { data: data }),
  put: (data) => request.put('/recrudescence_evaluate', data)
}

export const useSubjectFactorsSercice = {
  get: (id) => request.get('/recrudescence_inducing_factors/' + id),
  post: (data) => request.post('/recrudescence_inducing_factors', data),
  delete: (data) =>
    request.delete('/recrudescence_inducing_factors', { data: data }),
  put: (data) => request.put('/recrudescence_inducing_factors', data)
}
